package org.tio.sitexxx.web.server.controller.minip;

import org.tio.http.server.annotation.RequestPath;
import org.tio.sitexxx.service.model.main.Knowledge;
import org.tio.sitexxx.service.service.qj.KnowledgeService;


import java.util.List;

@RequestPath("/ads")
public class AdController {
    /**
     * 返回小程序轮播图的广告数据
     * @return
     */
    @RequestPath("/list")
    public List<Knowledge> t() {

        List<Knowledge> knowledges = KnowledgeService.me.getAd();
        return knowledges;
    }
}
